package com.lanchetech.dao;

import com.lanchetech.entity.AdvertisementRead;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AdvertisementReadMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AdvertisementRead record);

    int insertSelective(AdvertisementRead record);

    AdvertisementRead selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AdvertisementRead record);

    int updateByPrimaryKey(AdvertisementRead record);

    AdvertisementRead findOneByUserIdAndAdvertisementId(@Param("userId")Long userId,@Param("advertisementId")Long advertisementId);


}